<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "public/js/",
    TOKEN: ""
};
document.domain = "xinhuiwen.com";
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/js/publish.js"></script>

    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<script type="text/javascript" charset="UTF-8" src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/artDialog.source.js.js"></script>
<script type="text/javascript" charset="UTF-8" src="http://o9kxq6gms.bkt.clouddn.com/js_source/artdialog/plugins/iframeTools.source.js"></script>
</head>
<body style="min-width: 800px;">
<div class="" >
    <div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="<?php echo U('commentadmin/index');?>">视频素材库</a></li>
		</ul>
    <form class="well form-search" method="get" >
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="Weme" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="<?php echo ($menuid); ?>" />
                    <input type="hidden" name="type" value="<?php echo ($search["type"]); ?>" />
                    &nbsp;昵称 :
                    <input name="author" type="text" class="input-text" size="15" value="<?php echo ($search["author"]); ?>" />
                    </select>
                    
                        
                     <span class="select_shelter"> 
                                <select name="status" class="order_select " style="width:112px;">
                                    <option value="">状态</option>
                                    <?php if(is_array($status)): $i = 0; $__LIST__ = $status;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i; if($key >= 0): ?><option value="<?php echo ($key); ?>"
                                            <?php if($search[status] == $key): ?>selected<?php endif; ?>
                                            ><?php echo ($val); ?></option><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </select>
								</span>
                        
时间：
			<input type="text" name="stime" class="js-datetime" value="<?php echo ($search["stime"]); ?>" style="width: 120px;" autocomplete="off">-
			<input type="text" class="js-datetime" name="etime" value="<?php echo ($search["etime"]); ?>" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
                    <input type="submit" name="search" class="btn btn-primary" value="搜索" />
    </form>
    
    <div class="J_tablelist table_list" data-acturi="">
    <table class="table table-hover table-bordered table-list">
        <thead>
			<tr>
                <th width="120" align="left">ID</th>             
                <th width="120" align="left">昵称</th> 
                <th width="100" align="left">视频地址</th>
                <th width="120" align="left">视频拍摄时间</th>
                <th width="120" align="left">地区</th>
                <th width="120" align="left">使用状态</th>
                <th width="50"align="left">管理操作</th>
                
            </tr>
        </thead>
    	<tbody>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><tr>
            <td align="left"><?php echo ($val["id"]); ?></td>
            <td align="left"><?php echo ($val["nickname"]); ?></td>
            <td><a href="<?php echo ($val["url"]); ?>" target="_blank"><?php echo ($val["url"]); ?></a></td>
          <td><?php echo (date('Y-m-d H:i:s',$val["mtime"])); ?></td>
          <td>长治</td>
          <td><?php echo (sp_get_status($val["status"])); ?></td>
           <td> <a href="javascript:void(0);" onclick="send_weme(<?php echo ($val['id']); ?>,7);">转发</a> |
            <a href="javascript:void(0);" onclick="deleted(<?php echo ($val['id']); ?>);">删除</a>
           </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        
    	</tbody>
    </table>
    <div class="btn_wrap_fixed">
        <!-- <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall"><?php echo L('select_all');?>/<?php echo L('cancel');?></label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="<?php echo U('user_recharge/delete');?>" data-name="id" data-msg="<?php echo L('confirm_delete');?>" value="<?php echo L('delete');?>" /> -->
        <div id="pages" class="pagination"><?php echo ($page); ?></div>
    </div>

    </div>
</div>
</body>
</html>
<script src="/public/js/common.js"></script>
<script>

        function send_weme(id,type){
                var title='发布到图文直播';
                    if(type==1){
                            title='发布到汇友圈';
                    }
                    if(type==7){
                            title='转发';
                            var urlVal = '/Weme/send_weme/id/'+id+'/type/'+type;
                            art.dialog.open(urlVal, {
                             width:'730px',
                             height:'530px',
                             title:title,
                            }); 
                            return false;
                    }
                    
                var urlVal = '/Weme/send_weme/id/'+id+'/type/'+type;
                art.dialog.open(urlVal, {
                 width:'730px',
                 height:'530px',
                 title:title,
                });  
       }
</script>